import socket
buffsize=1024
server=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
server.connect(('www.baidu.com',80))
server.send(b'hello world')
data=server.recv(1024)
print(data.encode('utf-8'))